fix(country-map): update geojson and control layout #14063
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Update the GeoJSON of country maps with the latest Natural Earth data (public domain usage) and fix a bunch of usability issues with this viz type.
How the GeoJSON files was generated can be found here.
This should fix #4568 (dup #11666), provide a better solution for #12987 and supersedes apache-superset/superset-ui#955 .
Also updated the controls of the Country Map viz to move the required field "Country" out of "Chart Options" and converted all select option values to lowercase (for simplicity and consistency).
Includes a light weight db migration that runs on all Country Map visualizations. It should be very fast as this is not a very popular visualization type.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before
After
TEST PLAN
Tested locally with following virtual dataset:
ADDITIONAL INFORMATION